﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tatibah
{
    /// <summary>
    /// Base class for both Headers and Footers
    /// </summary>
    public class BaseHeaderFooter
    {
        /// <summary>
        /// The actual content of the Header or Footer
        /// </summary>
        protected List<HeaderFooterContent> contents = new List<HeaderFooterContent>();

        private string uniqueId;

        /// <summary>
        /// Constructor for base class of Headers and Footers
        /// </summary>
        public BaseHeaderFooter()
        {
            uniqueId = Document.GetNextId();
        }

        #region P R O P E R T I E S

        /// <summary>
        /// Gets the Contents of the Footer
        /// </summary>
        public List<HeaderFooterContent> Contents
        {

            get { return contents; }
        }

        /// <summary>
        /// Get the unique Id of this item
        /// </summary>
        public string UniqueId
        {
            get { return uniqueId; }
        }
        #endregion P R O P E R T I E S
    }
}
